package StreamAPI;

public enum Gender {
    MALE(1,"男"),
    FEMALE(0,"女"),
    OTHER(9,"未知");

    private Integer code;
    private String label;

    Gender(Integer code,String label){
        this.code=code;
        this.label=label;
    }

    public Integer getCode() {
        return code;
    }

    public String getLabel() {
        return label;
    }
}
